package com.xszx.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.xszx.entity.TAsset;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xszx.entity.dto.AssetCheck;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;

/**
* @author 34129
* @description 针对表【t_asset】的数据库操作Mapper
* @createDate 2024-01-08 20:40:47
* @Entity com.xszx.entity.TAsset
*/
@Mapper
public interface TAssetMapper extends BaseMapper<TAsset> {

    List<TAsset> selectAssetList(long did);

    List<TAsset> selectAssetLists();

    @Override
    int deleteById(Serializable id);

    @Override
    int insert(TAsset asset);

//    @Override
//    int updateById(TAsset asset);

    TAsset selectById(@Param("aid") long aid,@Param("did")long did);

    TAsset selectAssetByAid(@Param("aid") long aid,@Param("did") long did);

    List<TAsset> selectAssetListUsing(Long did);

    List<TAsset> selectAssetListForbidden(Long did);

    List<TAsset> selectAssetListFree(Long did);

    List<TAsset> selectAssetListFix(Long did);

    List<TAsset> selectAssetListScrap(Long did);

    int updateAstatusByAid(@Param("aid") long aid,@Param("astatus") String astatus);

    int updateAintodeptByAid(@Param("aid") long aid, @Param("aintodept") String aintodept, @Param("did") long did);

    TAsset selectAssetByAcode(long acode);

    List<TAsset> selectAssetsByCheck(AssetCheck assetCheck);
}




